/*** 
 * @Author: Yanan Chen
 * @Date: 2021-11-02 13:47:03
 * @LastEditTime: 2021-12-07 11:31:51
 * @LastEditors: Yanan Chen
 * @Description: 
 * @FilePath: \fw\esp32\Src\APP\app_sensor\sht20.h
 * @
 */
#ifndef __SHT20_H
#define __SHT20_H


#ifdef __cplusplus
extern "C" {
#endif
//#include "hal_function.h"

#define MEA_TEMPERATURE 0X10
#define MEA_HUMIDITY 0X01


typedef struct
{
    char en;
    int read_frq;
    int read_cnt;
    float temperature;
    char humidity;
}SHT20_DataHandle;

extern SHT20_DataHandle sht20Dadta;
extern void sht20_process(int arg);
extern void SHT20_SetStatus(char en,int frq);
#ifdef __cplusplus
}
#endif
#endif